package BehavioralMode.templateMethod.cooking;

/**
 * 抽象Cooking类
 */
public abstract class CookingAbstract {

      public void cooking(){
         fire();
         theOil();
         thefood();
         fillDish();
      }

      private void fire(){
          System.out.println("起火！");
      }

     private void theOil(){
          System.out.println("下油！");
      }

      protected abstract void thefood();

    private void fillDish(){
          System.out.println("盛菜");
      };




}
